<br />
<p class='text-center lead'>{title}</p>

<script language="JavaScript" type="text/javascript" src='http://<?php echo base_url(); ?>assets/JS/jquery.tablesorter.js'></script>

<table class='table table-striped table-bordered' id = 'mytable'>
	<thead>
	<tr  class="info">
	<th class="col-md-3"><strong>报价编号</strong></th>
	<th class="col-md-4"><strong>项目名称</strong></th>
	<th class="col-md-2"><strong>截止日期</strong></th>
	<th class="col-md-3"><strong>操作</strong></th>
	</tr>
	</thead>
	
	<tbody>
	{projects}
		<tr>
		<td>{code}</td>
		<td>{name}</td>
		<td>{deadline}</td>
		<td>
			<a class='btn btn-warning btn-sm' href='http://<?php echo base_url(); ?>index.php/bid_sales/edit_entrust/{id}' role='button'>修改</a>
			<a class='btn btn-info btn-sm' href='http://<?php echo base_url(); ?>index.php/bid_sales/entrust/{id}' role='button'>下载</a>
			<a class='btn btn-success btn-sm' href='http://<?php echo base_url(); ?>index.php/bid_sales/entrust/{id}' role='button'>商务标</a>
			<a class='btn btn-success btn-sm' href='http://<?php echo base_url(); ?>index.php/bid_sales/entrust/{id}' role='button'>已完成</a>
		</td>
		</tr>
	{/projects}
	</tbody>
</table>

<script type="text/javascript">
	jQuery("#mytable").tablesorter();
</script>
